<template>
	<view>
			<com-index v-show="current == 0"></com-index>
			<com-chat v-if="current == 1"></com-chat>
			<com-mine v-if="current == 2"></com-mine>
			<u-tabbar icon-size="44" active-color="#de1f1c" v-model="current" :list="list"></u-tabbar>
	</view>
</template>

<script>
	import comIndex from '@/pages/agent/components/com-index.vue'
	import comChat from '@/pages/agent/components/com-chat.vue'
	import comMine from '@/pages/agent/components/com-mine.vue'
	export default {
			components:{
				comIndex,comChat,comMine
			},
			data() {
				return {
					list: [{
							iconPath: "/static/tabbar/home.png",
							selectedIconPath: "/static/tabbar/home-active.png",
							text: '首页',
							customIcon: false,
						},
						{
							iconPath: "/static/tabbar/message.png",
							selectedIconPath: "/static/tabbar/message-active.png",
							text: '消息',
							customIcon: false,
						},
						{
							iconPath: "/static/tabbar/mine.png",
							selectedIconPath: "/static/tabbar/mine-active.png",
							text: '我的',
							customIcon: false,
						},
					],
					current: 0,
				}
			}
		}
</script>

<style>
</style>
